// file:api.js
// 1、导入axios以及拦截器
import service from './request'

// 2、定义登录函数接口
export const userList = (data) => {
    return service({
        url: '/test/list',
        method: 'post',
        data
    })
};
export const userLogin = (data) => {
    return service({
        url: '/user/login',
        method: 'post',
        data
    })
};
export const hospitalList = (data) => {
    return service({
        url: '/hospital/list',
        method: 'post',
        data
    })
};
export const hospitalReser = (id) => {
    return service({
        url: '/hospital/reser/'+id,
        method: 'post',
    })
};
export const hospitalUpdata = (data) => {
    return service({
        url: '/hospital/update',
        method: 'post',
        data
    })
};
